package org.jeecg.common.enmus;

/**
 * @author : syf
 * @date : 2023-03-12
 */

public enum YctdEnum {

    MARKET_ALERT(1,"市场快讯"),
    VARIETY_ANALYSIS(2,"品种分析"),
    INDUSTRY_WATCH(3,"产业观察"),
    HISTORICAL_PRICE(4,"历史价格"),
    TRACEABILITY_MANAGEMENT(5,"溯源管理"),
    AUTHENTICITY_IDENTIFICATION(6,"真伪鉴别"),

    ;


    /**
     * 根据类型找名字
     * @param type
     * @return
     */
    public static String findTyToName(Integer type){
        for (YctdEnum value : YctdEnum.values()) {
            if(value.getType() == type){
                return value.getName();
            }
        }
        return null;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private Integer type;
    private String name;



    YctdEnum(Integer type, String name) {
        this.type = type;
        this.name = name;

    }



}

